package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.cvo.OverdueVo;
import com.woniuxy.oldmanapi.entity.Overdue;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface OverdueMapper extends Mapper<Overdue> {
    List<OverdueVo> selectOverduevoByCons(@Param("outname") String outname,@Param("state") int state) ;

    void insertOverdue(Overdue overdue);

    void updateOverdue(Overdue overdue);

    @Update("update overdue set state=#{state} where id=#{id}")
    void updateState(@Param("id") int id, @Param("state") int state);
}
